tmem: Only enable by default for x86_64
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 6 Jan 2010 08:18:04 +0000 (08:18 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 6 Jan 2010 08:18:04 +0000 (08:18 +0000)
While tmem has gotten limited testing with a 32-bit Xen, it
has severe limitations due to 32-bit heap restrictions.
So, turn it off by default for 32-bit so nobody accidentally
runs into this.

Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>

xen/common/tmem_xen.c

index b4229b8b3fdb5beba84827f73fd5c6788dfe3d73..ba3f03ca9708faa374d2e40620fc31f20d463244 100644 (file)
 
 #define EXPORT /* indicates code other modules are dependent upon */
 
+#ifdef __x86_64__
 EXPORT int opt_tmem = 1;
+#else
+EXPORT int opt_tmem = 0;
+#endif
 boolean_param("tmem", opt_tmem);
 
 EXPORT int opt_tmem_compress = 0;